a = [1,2,3,4,5,6]

b = [i**3 for i in a]
print(b)

#列表、集合、元组改括号即可
b = [i**3 for i in a if i >= 3]
print(b)